﻿namespace MapleRock.P2PEmulator.RGR
{
  using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;

  public partial class EndPage : BasicRgrPage
  {
    public EndPage()
    {
      this.InitializeComponent();
    }

    public override string RgrPageName 
    {
      get { return "Конец"; }
    }

    private void SaveModelOutputButton_Click(object sender, EventArgs e)
    {
      var saveFileDialog = new SaveFileDialog();

      saveFileDialog.Filter = "Model output data (*.txt)|*.txt";
      saveFileDialog.RestoreDirectory = true;

      if (DialogResult.OK != saveFileDialog.ShowDialog())
      {
        return;
      }

      ModelOutputFile.Instance.Save(saveFileDialog.FileName);
    }
  }
}
